<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{listarPerfiles.page1}" id="page1">
            <ui:html binding="#{listarPerfiles.html1}" id="html1">
                <ui:head binding="#{listarPerfiles.head1}" id="head1">
                    <ui:link binding="#{listarPerfiles.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{listarPerfiles.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{listarPerfiles.form1}" id="form1">
                        <ui:table augmentTitle="false" binding="#{listarPerfiles.table1}" clearSortButton="true" id="table1" paginateButton="true"
                            paginationControls="true" sortPanelToggleButton="true" style="left: 48px; top: 240px; position: absolute; width: 671px"
                            title="Perfiles" width="448">
                            <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table1");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table1");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table1");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table1");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table1");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table1");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                            <ui:tableRowGroup binding="#{listarPerfiles.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                sourceData="#{listarPerfiles.sct0010DataProvider}" sourceVar="currentRow">
                                <ui:tableColumn binding="#{listarPerfiles.tableColumn6}" headerText="Descripción del perfil" id="tableColumn6" sort="SCT0010.DSCRPCION">
                                    <ui:staticText binding="#{listarPerfiles.staticText2}" id="staticText2" text="#{currentRow.value['SCT0010.DSCRPCION']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listarPerfiles.tableColumn4}" headerText="Perfil Padre" id="tableColumn4" sort="SCT0010.PRFILPDRE">
                                    <ui:staticText binding="#{listarPerfiles.staticText4}" id="staticText4" text="#{currentRow.value['SCT0010.PRFILPDRE']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{listarPerfiles.tableColumn10}" id="tableColumn10" valign="middle">
                                    <ui:button action="#{listarPerfiles.dets_action}" binding="#{listarPerfiles.dets}" id="dets" mini="true" primary="true" text="ver Detalles"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{listarPerfiles.tableColumn2}" id="tableColumn2" valign="middle">
                                    <ui:button action="#{listarPerfiles.actPerfil_action}" binding="#{listarPerfiles.actPerfil}" id="actPerfil" mini="true"
                                        primary="true" text="Actualizar"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{listarPerfiles.tableColumn5}" id="tableColumn5" valign="middle">
                                    <ui:button action="#{listarPerfiles.delete_action}" binding="#{listarPerfiles.delete}" id="delete" mini="true"
                                        onClick="if (confirm('Desea eliminar este perfil?') ==false) return false" primary="true" text="Eliminar"/>
                                </ui:tableColumn>
                            </ui:tableRowGroup>
                        </ui:table>
                        <ui:messageGroup binding="#{listarPerfiles.messageGroup1}" id="messageGroup1" style="left: 336px; top: 672px; position: absolute"/>
                        <ui:button action="#{listarPerfiles.button4_action}" binding="#{listarPerfiles.button4}" id="button4" mini="true" primary="true"
                            style="left: 47px; top: 216px; position: absolute; width: 96px" text="Agregar Perfil &gt;"/>
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <ui:button action="#{listarPerfiles.menu_action}" binding="#{listarPerfiles.menu}" id="menu" mini="true" primary="true"
                            style="left: 47px; top: 120px; position: absolute; width: 72px" text="Cerrar"/>
                        <ui:staticText binding="#{listarPerfiles.titulo1}" id="titulo1"
                            style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px; left: 288px; top: 120px; position: absolute" text="Listado de Perfiles"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
